//
//  EquipmentDetailsVC.m
//  DefendHealth
//
//  Created by 吾诺瀚卓 on 17/3/6.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "EquipmentDetailsVC.h"

@interface EquipmentDetailsVC ()

@end

@implementation EquipmentDetailsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.TitleNav.text = self.titleName;
    [self createMainUI];
}
#pragma mark-界面布局
-(void)createMainUI
{
    self.TitleNav.textColor = UIColorFromRGB(0x888888);
    [self.leftbutton setImage:IMAGE(@"nav_icon_back") forState:UIControlStateNormal];
    UIView *bgView = [[UIView alloc]initWithFrame:CGRectMake(0, k_NavigationHeight, kScreenWidth, 275)];
    bgView.backgroundColor = kWhiteColor;
    [self.view addSubview:bgView];
    UIImageView *headerImageView = [ReduceCode creatImageVeiwWithFrame:CGRectMake(50, 0, kScreenWidth-100, 250) imageName:@"pic" isCorner:NO];
    headerImageView.backgroundColor = kWhiteColor;
    [bgView addSubview:headerImageView];
    
    UILabel *chanPinL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(bgView.frame)+30, kScreenWidth-40, 20) title:@"产品参数" titleColor:UIColorFromRGB(0x333333) font:18 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:chanPinL];
    UILabel *xingHaoL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(chanPinL.frame)+15, kScreenWidth-40, 20) title:@"型号：精灵ELF" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:xingHaoL];
    UILabel *jianZhengL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(xingHaoL.frame)+5, kScreenWidth-40, 20) title:@"减震：奔驰6级横向减震" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:jianZhengL];
    UILabel *chiCunL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(jianZhengL.frame)+5, kScreenWidth-40, 20) title:@"展开尺寸：长176cm*宽73*高131cm" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:chiCunL];
    UILabel *maxChengZaiL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(chiCunL.frame)+5, kScreenWidth-40, 20) title:@"最大承载：130kg" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:maxChengZaiL];
    UILabel *jiaYouL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(maxChengZaiL.frame)+5, kScreenWidth-40, 20) title:@"加油方式：自助加油" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:jiaYouL];
    UILabel *maDaL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(jiaYouL.frame)+5, kScreenWidth-40, 20) title:@"马达：峰值3.0HP变频马达" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:maDaL];
    UILabel *mianJiL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(maDaL.frame)+5, kScreenWidth-40, 20) title:@"跑带面积：长126cm*宽42cm" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:mianJiL];
    UILabel *caoZuoL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(mianJiL.frame)+5, kScreenWidth-40, 20) title:@"操作方式：彩屏触碰/功能按键" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:caoZuoL];
    UILabel *pingMuL = [ReduceCode creatLabelWithFrame:CGRectMake(20, kMaxY(caoZuoL.frame)+5, kScreenWidth-40, 20) title:@"屏幕尺寸：10.1英寸" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentLeft];
    [self.view addSubview:pingMuL];
    
}
-(void)leftEvents
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
